package net.zjitc.boot303demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@ComponentScan(basePackages = {"net.zjitc.boot303demo", "net.zjitc.bao"}) // 明确扫描两个包
public class Boot303DemoApplication {
    public static void main(String[] args) {
        SpringApplication.run(Boot303DemoApplication.class, args);
    }
}